package com.kxf.rpc.exception;

import com.kxf.rpc.enumeration.RpcError;

/**
 * @author Kxf
 * @create 2021/9/21,0021 22:29
 */
public class RpcException extends RuntimeException {

    private String msg;
    private RpcError error;

    public RpcException(RpcError error) {
        super(error.getMsg());
    }

    public RpcException(RpcError error, String detail) {
        super(error.getMsg() + ":" + detail);
    }
}
